package com.yunxi.service.localService.otd;

import com.github.pagehelper.PageInfo;
import com.yunxi.bizToHub.pojo.OtdModelVO;
import com.yunxi.core.service.IServicePlus;
import com.yunxi.model.otd.OtdIfProducePlan;
import com.yunxi.otd.pojo.OtdIfProducePlanVO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 生产计划 服务类
 * </p>
 *
 * @author XUQI
 * @since 2019-05-24
 */
public interface OtdIfProducePlanService extends IServicePlus<OtdIfProducePlan> {

    List<Map<String, Object>> findDailyByCode(String year, String month, String modelCode, List<Integer> dayList);

    PageInfo findChangePlan(OtdIfProducePlanVO planVO, Integer pageNum, Integer pageSize);

    OtdIfProducePlanVO findVOByCode(String planNo);

    OtdIfProducePlan findByCode(String planNo);

    List<OtdIfProducePlanVO> findIfListByWeek(String year, String month, String week);

    Integer findIfNumByWeek(String year, String month, String week);

    void updateIfPlanBySapBack(@Param("planNo") String planNo,@Param("sapNo") String sapNo, @Param("sapState") String sapState,
        @Param("errorInfo") String errorInfo);

}
